const path = require("path")
const webpack = require("webpack")

module.exports = {
    // devtool: 'source-map',
    entry: './src/index.js',
    target: 'node',
    node: {
        __dirname: false,
        __filename: false,
    },
    output: {
        path: path.resolve(__dirname, "build-server"),
        filename: "startServer.js",
        libraryTarget: "commonjs"
    },
    plugins: [
        new webpack.DefinePlugin({
            'process.env.FLUENTFFMPEG_COV': false
        })
    ],
    externals: [
        {
            electron: 'electron',
        }
    ],
};
